package com.ftg.learn.service;

import com.ftg.learn.entity.EmployeeEntity;
import com.ftg.learn.util.PageEx;
import com.ftg.learn.util.R;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * 描述
 *
 * @author 布衣
 * @date 2025/7/4
 */
public interface EmployeeService {

    R<PageEx<EmployeeEntity>> showAll(String ename, Integer page, Integer size);

    List<EmployeeEntity> showAllByName(String ename);

    R<Integer> addEmployee(EmployeeEntity employeeEntity);

    R<Integer> deleteEmployee(int eid);

    R<Integer> updateEmployee(EmployeeEntity employeeEntity);

    R<Integer> deleteByIds(List<Integer> eids);

    R<PageEx<EmployeeEntity>> pageHelperAll(String ename, int page, int size);

    R<PageInfo<EmployeeEntity>> pageTest(String ename, int page, int size);
}
